<?php
/**
 * 描述
 * Created by Paco
 * Date: 2018/10/6 Time: 16:33
 */

namespace App\Http\Controllers\Api;


use App\Repositories\Geo\CityRepository;
use Illuminate\Http\Request;

class CityController
{
    protected $city;

    public function __construct(CityRepository $city)
    {
        $this->city = $city;
    }

    public function city(Request $request)
    {
        $gbcode = $request->input('gbcode', '');
        return $this->city->citys($gbcode);
    }
}